<%--
  Created by IntelliJ IDEA.
  User: 10153
  Date: 2025/3/28
  Time: 下午3:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>更新书籍</title>
    <script>
        var msg = "${msg}";
        if (msg != ""){
            alert(msg);
        }
    </script>
</head>
<body>
    <form action="/book/updateBook" method="post">
        id：<input type="text" name="id" value="${book.id}" readonly><br>
        书名：<input type="text" name="title" value="${book.title}"><br>
        作者：<input type="text" name="author" value="${book.author}"><br>
        数量：<input type="text" name="num" value="${book.num}"><br>
        <input type="submit" value="修改">
    </form>
    <button onclick="back()">返回</button>
    <script>
        function  back(){
            location.href="/user/toLoginShow";
        }
    </script>
</body>
</html>